package com.example.weixinsystem.service;

import com.weixin.common.core.domain.Result;
import com.weixin.common.core.form.LoginForm;
import com.weixin.common.core.form.LoginUserDetails;

import javax.servlet.http.HttpServletRequest;

/**
 * @version 1.0.0
 * @className: LoginService
 * @description:
 * @author: zhangjunfa
 * @date: 2023/5/27 15:26
 */
public interface LoginService {

    /**
     * 用户登录
     *
     * @param loginForm 登录对象
     * @return
     */
    String login(LoginForm loginForm);


    /**
     * 刷新Token
     * @param request 请求头
     */
    void refreshToken(HttpServletRequest request);

    /**
     * 退出登录
     * @param request 请求头
     */
    void logout(HttpServletRequest request);

}
